//
//  CustomViewController.m
//  HYApp
//
//  Created by Jianbo Cai on 2020/7/23.
//  Copyright © 2020 Unidax. All rights reserved.
//

#import "CustomNavigationController.h"
#import <JFBase/UINavigationController+JFNavAttribute.h>
#import <JFBase/UINavigationItem+FastItem.h>

@interface CustomNavigationController ()

@end

@implementation CustomNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navBackGroundColor = [UIColor whiteColor];
    [self.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : UIColorFromHex(0x333333),
    NSFontAttributeName : [UIFont fontWithName:@"PingFang SC" size:17]}];
//    [self.navigationItem leftItemWithTarget:self action:@selector(goBack) image:[UIImage imageNamed:@"return"]];
//    self.navigationItem.leftBarButtonItems = @[[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"return"] style:UIBarButtonItemStylePlain target:self action:@selector(goBack)]];
    
}

- (void)goBack {
    [self popViewControllerAnimated:YES];
}

@end
